#include <stdio.h>
#include<string.h>


int main()
{
    char s[81];
    char symbols[]=" :,;?!";
    char *sword;
    char new[80]="";
    int count=0;
    
    printf("Enter a string of maximum length 80 characters:");
        gets(s);
             sword=strtok(s,symbols);
             while(sword!=NULL){
                 printf("%s\n", sword);
     	            strcat (new , sword);
     	                strcat (new , " ");
     	                    count++;
     	                    sword=strtok(NULL,symbols);
             }
             
	printf ("your sentence has %d words\n" , count);
	printf ("The sentence without punctuation is: \n");
	puts (new); 	
	
    return 0;
}

